package picture;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.io.IOException;

public class WindowUtils {
    // 通用设置窗口Logo的方法
    public static void setLogo(Window window) {
        try {
            // 替换为Logo图片路劲
            Image logo = ImageIO.read(new File("src/picture/界面素材/53AC38399D9F7A92F756F5ACF1DD74D3.jpg"));
            window.setIconImage(logo);
        } catch (IOException e) {
            // 图片加载失败不报错，不影响程序运行
        }
    }
}

